function h=B747_draw_player(G,P,k)
Gite=P.ang(1);
Assiette=P.ang(2);
Cap=P.ang(3);
altitude= P.pos(3);
faces=P.faces;
vertices = 10/2 * ([1 0 0;0 cos(-pi/2) -sin(-pi/2); 0 sin(-pi/2) cos(-pi/2)]*P.vertices')';
vertices(:,3) = vertices(:,3) - max(vertices(:,3)); 
M_Rb_RF = [1 0 0; 0 cos(Gite) -sin(Gite); 0 sin(Gite) cos(Gite)];
M_RF_Rc = [cos(Assiette) 0 sin(Assiette); 0 1 0; -sin(Assiette) 0 cos(Assiette)];
M_Rc_Ro = [cos(Cap) -sin(Cap) 0; sin(Cap) cos(Cap) 0; 0 0 1];
vertices = (M_Rc_Ro*M_RF_Rc*M_Rb_RF*vertices')';
vertices(:,3) = vertices(:,3) - altitude;
h=patch('Vertices',vertices,'Faces',faces,'FaceVertexCData',flipud(gray(size(vertices,1))),'FaceColor','interp','FaceLighting','Phong','EdgeColor','none','SpecularColorReflectance',0.5);

view(3)
set(get(1,'Children'),'ZDir','reverse')
set(get(1,'Children'),'YDir','reverse')
axis equal
axis([-37 37 -37 37 -37-altitude 37-altitude])
patch([-37 37 37 -37],[37 37 -37 -37],[0 0 0 0],'FaceColor',[0.8 0.6 0.45]) 
grid on
xlabel('X_O')
ylabel('Y_O')
zlabel('Z_O')
return;


if(max(vertices(:,3))>0)
	%~ disp('  ')
	%~ disp('!!!!!!!!!!   ATTENTION : CRASH  !!!!!!!!!!!!!!!!!!')
end


Elevation = 45 ;
Direction = 60 ; 
El = Elevation * pi / 180 ;
Dr = Direction * pi / 180 ;
Position = [ cos(El)*sin(Dr) cos(El)*cos(Dr) -cos(El)];
lh = light('Style','infinite', 'Position', Position,'Color',[1 1 1]);
set(gca,'AmbientLightColor', [1 1 1])
